package orion.cricScoreCard.Utilities;

import orion.cricScoreCard.Entities.CurrentPlayers;

public class ScoringFunctions {

	public static int runs;
	public static int balls;
	public static int wikets;

	public static int overs;

	public static void one() {
		runs = runs + 1;
		balls++;
	}

	public static void two() {
		runs = runs + 2;
		balls++;
	}

	public static void four() {
		runs = runs + 4;
		balls++;
	}

	public static void six() {
		runs = runs + 6;
		balls++;
	}

	public static void wide() {
		runs = runs + 1;
	}

	public static void noball() {
		runs = runs + 1;
	}

	public static void legBy() {
		runs = runs + 1;
	}

	public static void sameBall() {
		//balls--;
	}

	public static void three() {
		runs = runs + 3;
		balls++;

	}

	public static void byes() {
		// TODO Auto-generated method stub
	}

	public static void out() {
		wikets++;

	}

	public static void swap() {
		String temp = CurrentPlayers.getNon_striker();
		CurrentPlayers.setNon_striker(CurrentPlayers.getStriker());
		CurrentPlayers.setStriker(temp);
	}

	public static void zero() {
		balls--;

	}

	public static void setBalls(int overs) {
		ScoringFunctions.overs = overs;
	}
}
